<link rel="stylesheet" type="text/css" href="/static/css/pc/index.css" />
<link rel="stylesheet" href="/static/css/pc/common.less" />
<link rel="stylesheet/less" type="text/css" href="/static/css/pc/index.less">
<style type="text/css">
  ul {
    list-style: none !important;
  }

  p {
    margin: 0 0 1px !important;
  }

  .brand-list li {
    margin: 12.5px 10.5px !important;
  }

  .buy-btn {
    font-size: 14px;
    width: 118px;
    height: 34px;
    line-height: 34px;
    border-radius: 18px;
    background: #488DFB;
    color: #fff;
    transition: all 0.5s;
    display: block;
    margin: 0 auto;
    border: 1px solid #488DFB;
    text-align: center;
  }
</style>
<div class="content" id="content" val="7">
  <div class="container">
    <div class="category-block clearfix">
      <div class="title-contianer">
        <h2 class="title anchor" id="ProtectionCleaning">个护清洁<span class="desc">Protection&Cleaning</span></h2>
        <ul class="category-list clearfix">
          <li class="item">
            <a href="#">磨毛套件</a>
          </li>
          <li class="item">
            <a href="#">羽绒厚被</a>
          </li>
          <li class="item">
            <a href="#">绒暖布艺</a>
          </li>
          <li class="item">
            <a href="#">床品套件</a>
          </li>
          <li class="item">
            <a href="#">被枕垫褥</a>
          </li>
          <li class="item">
            <a href="#">布艺软装</a>
          </li>
          <li class="item">
            <a href="#">毛巾浴巾</a>
          </li>
        </ul>
      </div>
      <div class="digital-list">
        <div class="banner">
          <a href="#">
            <div class="overflow-hidden">
              <img class="img-scale" src="/static/images/pc/52.png">
            </div>
          </a>
        </div>
        <ul class="goods-list clearfix">
          <li class="goods" val="1">
            <div style="margin: 0 0 2px -22px;width: 184px;height:240px">
              <div style="z-index: 999;position: relative;top: 105px;height: 0;">
                <a class="buy-btn" val="1" name="checkProduct">暂未选择1</a>
              </div>
              <img src="/static/images/background.png" style="width: 184px;height:240px">
            </div>
          </li>
          <li class="goods" val="2">
            <div style="margin: 0 0 2px -22px;width: 184px;height:240px">
              <div style="z-index: 999;position: relative;top: 105px;height: 0;">
                <a class="buy-btn" val="2" name="checkProduct">暂未选择2</a>
              </div>
              <img src="/static/images/background.png" style="width: 184px;height:240px">
            </div>
          </li>
          <li class="goods" val="3">
            <div style="margin: 0 0 2px -22px;width: 184px;height:240px">
              <div style="z-index: 999;position: relative;top: 105px;height: 0;">
                <a class="buy-btn" val="3" name="checkProduct">暂未选择3</a>
              </div>
              <img src="/static/images/background.png" style="width: 184px;height:240px">
            </div>
          </li>
          <li class="goods" val="4">
            <div style="margin: 0 0 2px -22px;width: 184px;height:240px">
              <div style="z-index: 999;position: relative;top: 105px;height: 0;">
                <a class="buy-btn" val="4" name="checkProduct">暂未选择4</a>
              </div>
              <img src="/static/images/background.png" style="width: 184px;height:240px">
            </div>
          </li>
          <li class="goods" val="5">
            <div style="margin: 0 0 2px -22px;width: 184px;height:240px">
              <div style="z-index: 999;position: relative;top: 105px;height: 0;">
                <a class="buy-btn" val="5" name="checkProduct">暂未选择5</a>
              </div>
              <img src="/static/images/background.png" style="width: 184px;height:240px">
            </div>
          </li>
          <li class="goods" val="6">
            <div style="margin: 0 0 2px -22px;width: 184px;height:240px">
              <div style="z-index: 999;position: relative;top: 105px;height: 0;">
                <a class="buy-btn" val="6" name="checkProduct">暂未选择6</a>
              </div>
              <img src="/static/images/background.png" style="width: 184px;height:240px">
            </div>
          </li>
        </ul>
        <div class="rank-block">
          <h3 class="title">今日排行榜</h3>
          <ul class="rank-list">
            <li class="goods" val="7">
              <div style="margin: 0 0 2px -22px;width: 310px;height:80px">
                <div style="z-index: 999;position: relative;top: 25px;height: 0;">
                  <a class="buy-btn" val="7" name="checkProduct">暂未选择7</a>
                </div>
                <img src="/static/images/background.png" style="width: 310px;height:80px">
              </div>
            </li>
            <li class="goods" val="8">
              <div style="margin: 0 0 2px -22px;width: 310px;height:80px">
                <div style="z-index: 999;position: relative;top: 25px;height: 0;">
                  <a class="buy-btn" val="8" name="checkProduct">暂未选择8</a>
                </div>
                <img src="/static/images/background.png" style="width: 310px;height:80px">
              </div>
            </li>
            <li class="goods" val="9">
              <div style="margin: 0 0 2px -22px;width: 310px;height:80px">
                <div style="z-index: 999;position: relative;top: 25px;height: 0;">
                  <a class="buy-btn" val="9" name="checkProduct">暂未选择9</a>
                </div>
                <img src="/static/images/background.png" style="width: 310px;height:80px">
              </div>
            </li>
            <li class="goods" val="10">
              <div style="margin: 0 0 2px -22px;width: 310px;height:80px">
                <div style="z-index: 999;position: relative;top: 25px;height: 0;">
                  <a class="buy-btn" val="10" name="checkProduct">暂未选择10</a>
                </div>
                <img src="/static/images/background.png" style="width: 310px;height:80px">
              </div>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script id="getindex1Html" type="x-tmpl-mustache">
{{#data}}
    <a href="#">
              <div class="overflow-hidden">
                <img class="goods-img img-scale" src="{{bigpic}}">
              </div>
            </a>
            <a class="title">{{name}}</a>
            <p class="price-container"><span class="price">￥{{xianshi}}</span><span class="old-price">原价{{price}}</span>
            </p>
{{/data}}
</script>
<script id="getindex1Html2" type="x-tmpl-mustache">
{{#data}}
    <a href="#">
                <div class="overflow-hidden">
                  <img class="goods-img img-scale" src="{{bigpic}}">
                </div>
              </a>
              <div class="info">
                <a class="title" href="#">{{name}}</a>
                <p class="price-container"><span class="price">￥{{xianshi}}</span><span
                        class="old-price">原价{{price}}</span></p>
              </div>
              <div class="shopcar">
                <a href="#">
                  <i class="iconfont iconjiarugouwuche"></i>
                </a>
              </div>
{{/data}}
</script>
<script type="text/javascript" src="/static/js/lib/pcIndex.js"></script>
<script type="text/javascript">
    _function.queryProductInfoByConfId({config_id:$("#content").attr('val')},function (data) {
        if(null!=data){
            $.each(data,function (index,val) {
                val.xianshi=val.price*val.discount;
                var lnameHtmls='';
                if(index>6){
                    lnameHtmls = Mustache.render($('#getindex1Html2').html(), {data: val});
                }else{
                    lnameHtmls = Mustache.render($('#getindex1Html').html(), {data: val});
                }
                $(".goods[val='"+index+"']").empty().append(lnameHtmls);
            })
        }
    })
</script>